<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Game_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-game_code" data-rule="required" class="form-control" name="row[game_code]" type="text" value="{$row.game_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Current_question_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-current_question_id" data-rule="required" data-source="current/question/index" class="form-control selectpage" name="row[current_question_id]" type="text" value="{$row.current_question_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Current_question_index')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-current_question_index" data-rule="required" class="form-control" name="row[current_question_index]" type="number" value="{$row.current_question_index|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Question_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-question_ids" data-rule="required" data-source="question/index" data-multiple="true" class="form-control selectpage" name="row[question_ids]" type="text" value="{$row.question_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group_scores')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-group_scores" data-rule="required" class="form-control " rows="5" name="row[group_scores]" cols="50">{$row.group_scores|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Game_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="gameStatusList" item="vo"}
            <label for="row[game_status]-{$key}"><input id="row[game_status]-{$key}" name="row[game_status]" type="radio" value="{$key}" {in name="key" value="$row.game_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:$row.start_time?datetime($row.start_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-update_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:$row.update_time?datetime($row.update_time):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
